<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>范式融通NEWS</title>
    <meta name="Keywords" content="范式融通，AI，人工智能，">
    <meta name="description" content="范式融通是国内领先的人工智能金融业务应用和金融科技服务提供商，是我国金融科技应用的领先企业。专业的人工智能技术，帮助金融、医疗、保险、交通和教育等诸多领域客户提供智慧应用的整体业务解决方案。银行信用卡反欺诈平台，金融商业灵动平台，人脸识别管理平台等多个领先AI应用，应用于商业银行的精准营销、个性化推荐、风险管控、智能投顾以及智能客服等多项业务中。" />
    <link rel="stylesheet" href="../css/reset.css">

    <link rel="stylesheet" href="../css/public.css">
    <link rel="stylesheet" href="../css/news.css">
    <link rel="stylesheet" href="../css/iconfont.css">
    <script src="../js/jquery-2.1.1.min.js"></script>
    <script src="../js/public.js"></script>
    <script src="../js/config.js"></script>
    <script src="../js/work.js"></script>
    <script src="../js/config.js"></script>
</head>
<body>
<div class="header">
    <div class="containr">
        <img src="../image/logo02.png" class="logo">
        <div class="navbar">
            <div class="navbar-item">
                <a href="../index.html">首页</a>
            </div>
            <div class="navbar-item">
                <a href="business.html">产品和解决方案</a>
            </div>
            <div class="navbar-item">
                <a >客户案例</a>
                <div class="navbar-child">
                </div>
            </div>
            <div class="navbar-item">
                <a href="" class="active">媒体平台</a>
            </div>
            <div class="navbar-item">
                <a href="recruit.html">招贤纳士</a>
            </div>
            <div class="navbar-item">
                <a href="contantus.html">关于我们</a>
            </div>
        </div>
    </div>
    <div class="progress"></div>
</div>

<div class="banner">
    <div class="containr">
        <h1 class="title">
            <div class="ch">媒体平台</div>
            <div class="en">NEWS</div>
        </h1>
        <div class="des">
        </div>
    </div>

</div>
<div class="news-list">
    <div class="containr" id="cons">

    </div>
    <div class="more-group">
        <span id="newListMore" class="more" >MORE</span>
    </div>
</div>
<div class="footer">
    <div class="containr">
        <div class="footer-text fl">
            <ul class="footer-list fl">
                <div class="footer-list-tit">联系方式</div>
                <li class="footer-list-item">电话：010-62977099</li>
                <li class="footer-list-item">传真：010-62977066</li>
                <li class="footer-list-item">邮箱：admin@paradigmrt.com</li>
            </ul>
            <ul class="footer-list fl">
                <div class="footer-list-tit">地址</div>
                <li class="footer-list-item">北京市海淀区上地颐泉汇1号楼532室</li>
            </ul>
        </div>
        <div class="code fr">
            <div class="wechatCode fl">

                <div class="codeIcon fl">
                    <div class="iconfont icon-weixin"></div>
                </div>
                 <div class="codeImg fl">
                     <img src="../image/wechatcode.jpg" alt="">
                     <div class="codeDes" style="font-size: 12px">扫描二维码关注</div>
                 </div>
            </div>
            <!--<div class="wechatCode fl">
                <div class="codeIcon fl">
                    <a href=""><div class="iconfont icon-weibo"></div></a>
                </div>
            </div>-->
        </div>

    </div>
    <div class="copyright">
        Copyright © 2018 范式融通 |  京ICP备18023351号-1
    </div>
</div>
<link href='http://cdn.webfont.youziku.com/webfonts/nomal/106291/44802/5acf09d8f629d9096889bd78.css' rel='stylesheet'
      type='text/css'/>
<link href='http://cdn.webfont.youziku.com/webfonts/nomal/106291/46899/5ad36e84f629d800b0310257.css' rel='stylesheet'
      type='text/css'/>
<script>
    var pageNum = 1;
    var pageSize = 5;
    jQuery.support.cors = true;
    function computedBorder() {
        $(".ano").each(function (i) {
            if (i % 2 === 1) {
                $('.ano').eq(i).css('margin-left', '4%');
            }
        })
        $(".newsBig").each(function (i) {
            if (i % 2 === 1) {
                $(".newsBig").eq(i).children('.father').css('right', 0);
                $(".newsBig").eq(i).children('.newsListContainr').css('float', 'left');
                $(".newsBig").eq(i).children('.newsListContainr').children('a').children('.news-title').css('margin-left', '40px');
                $(".newsBig").eq(i).children('.newsListContainr').children('a').children('.news-detial').css({
                    'margin-left': '40px',
                    'margin-right': '120px'
                });
                $(".newsBig").eq(i).children('.newsListContainr').children('a').children('.news-times').css('margin-left', '40px');
            }
        })
    }
    getList()
    function getList() {
        $.ajax({
            type: 'post',
            url: api + 'mess/findMessagesByPage',
            data: {
                pageNum: pageNum,
                pageSize: pageSize
            },
            success:function (res) {
                if(res.pageList.length !== 0){
                    var str = $('#cons').html();
                    str += results(res.pageList,0,'');
                    $("#cons").html(str);
                    computedBorder();
                }else {
                    $('#newListMore').html('感谢您对范式融通的关注')
                    $('#newListMore').unbind();
                }
            }
        })
    }
    function results(list, num, result) {
        if (num < list.length) {
            if (num % 5 === 0) {
                result += "<div class=\"news-list-item newsBig\">\n                        <div class=\"father\">\n                            <div class=\"news-imgs\">\n                                <img src=\"" + list[num].src + "\" alt=\"\">\n                            </div>\n                        </div>\n                        <div class=\"newsListContainr\">\n                            <a href=\"newsDetail.html?id=" + list[num]._id + "\">\n                                <div class=\"news-title first\">\n                                      " + list[num].title + "\n                                </div>\n                                <p class=\"news-detial\">\n                                   " + list[num].smallInfo + "\n                                </p>\n                                <p class=\"news-times\">\u4E0A\u4F20\u65F6\u95F4:" + Workbridage.timeALL({ timestamp: list[num].time / 1000 }) + "</p>\n                            </a>\n\n                        </div> </div>";
            } else {
                result += "<div class=\"news-list-item ano\">\n                        <div class=\"time\">\n                            <p class=\"timeBig\">" + Workbridage.timeArr({ timestamp: list[num].time / 1000 })[1] + "." + Workbridage.timeArr({ timestamp: list[num].time / 1000 })[2] + "</p>\n                            <p class=\"timesmall\">" + Workbridage.timeArr({ timestamp: list[num].time / 1000 })[0] + "</p>\n                        </div>\n                        <div class=\"right\">\n                            <a href=\"newsDetail.html?id=" + list[num]._id + "\">\n                                <div class=\"news-title\">\n                                   " + list[num].title + "\n                                </div>\n                                <div class=\"news-details\">\n                                    " + list[num].smallInfo + "\n                                </div>\n                            </a>\n                        </div>\n                    </div>";
            }
            num++;
            return results(list, num, result);
        } else {
            return result;
        }
    }
    
    $('#newListMore').click(function () {
        pageNum++;
        getList();
    })

</script>
</body>
</html>
